﻿// CDlgStopReason.cpp: 实现文件
//

#include "stdafx.h"
#include "MesTest.h"
#include "CDlgStopReason.h"
#include "afxdialogex.h"


// CDlgStopReason 对话框

IMPLEMENT_DYNAMIC(CDlgStopReason, CDialogEx)

CDlgStopReason::CDlgStopReason(CWnd* pParent /*=nullptr*/)
	: CDialogEx(IDD_DIALOG_STOPREASON, pParent)
{

}

CDlgStopReason::~CDlgStopReason()
{
}

void CDlgStopReason::DoDataExchange(CDataExchange* pDX)
{
	CDialogEx::DoDataExchange(pDX);
}


BEGIN_MESSAGE_MAP(CDlgStopReason, CDialogEx)
	ON_BN_CLICKED(IDC_BUTTON_SHORTSTOP, &CDlgStopReason::OnBnClickedButtonShortstop)
	ON_BN_CLICKED(IDC_BUTTON_WAITPRODUCT, &CDlgStopReason::OnBnClickedButtonWaitproduct)
	ON_BN_CLICKED(IDC_BUTTON_EATFOOD, &CDlgStopReason::OnBnClickedButtonEatfood)
	ON_BN_CLICKED(IDC_BUTTON_CHANGETYPE, &CDlgStopReason::OnBnClickedButtonChangetype)
	ON_BN_CLICKED(IDC_BUTTON_EQUQUESTION, &CDlgStopReason::OnBnClickedButtonEququestion)
	ON_BN_CLICKED(IDC_BUTTON_PRODUCEQUESTION, &CDlgStopReason::OnBnClickedButtonProducequestion)
	ON_BN_CLICKED(IDC_BUTTON_EQUCHECK, &CDlgStopReason::OnBnClickedButtonEqucheck)
	ON_BN_CLICKED(IDC_BUTTON_FIRSTPEODUCT, &CDlgStopReason::OnBnClickedButtonFirstpeoduct)
	ON_BN_CLICKED(IDC_BUTTON_QUALITYABNORMAL, &CDlgStopReason::OnBnClickedButtonQualityabnormal)
	ON_BN_CLICKED(IDC_BUTTON_MANYPRODUCT, &CDlgStopReason::OnBnClickedButtonManyproduct)
	ON_BN_CLICKED(IDC_BUTTON_ENVIROMENTABNORMAL, &CDlgStopReason::OnBnClickedButtonEnviromentabnormal)
	ON_BN_CLICKED(IDC_BUTTON_SETMESSAGEINCOPLETE, &CDlgStopReason::OnBnClickedButtonSetmessageincoplete)
	ON_BN_CLICKED(IDC_BUTTON_OTHER, &CDlgStopReason::OnBnClickedButtonOther)
	ON_BN_CLICKED(IDOK, &CDlgStopReason::OnBnClickedOk)
END_MESSAGE_MAP()


// CDlgStopReason 消息处理程序


void CDlgStopReason::OnBnClickedButtonShortstop()
{
	// TODO: 在此添加控件通知处理程序代码
	g_SendMes.nStopReason=0;
	CDialogEx::OnOK();

}


void CDlgStopReason::OnBnClickedButtonWaitproduct()
{
	// TODO: 在此添加控件通知处理程序代码
	g_SendMes.nStopReason = 1;
	CDialogEx::OnOK();
}


void CDlgStopReason::OnBnClickedButtonEatfood()
{
	// TODO: 在此添加控件通知处理程序代码
	g_SendMes.nStopReason = 2;
	CDialogEx::OnOK();
}


void CDlgStopReason::OnBnClickedButtonChangetype()
{
	// TODO: 在此添加控件通知处理程序代码
	g_SendMes.nStopReason = 3;
	CDialogEx::OnOK();
}


void CDlgStopReason::OnBnClickedButtonEququestion()
{
	// TODO: 在此添加控件通知处理程序代码
	g_SendMes.nStopReason = 4;
	CDialogEx::OnOK();
}


void CDlgStopReason::OnBnClickedButtonProducequestion()
{
	// TODO: 在此添加控件通知处理程序代码
	g_SendMes.nStopReason = 5;
	CDialogEx::OnOK();
}


void CDlgStopReason::OnBnClickedButtonEqucheck()
{
	// TODO: 在此添加控件通知处理程序代码
	g_SendMes.nStopReason = 6;
	CDialogEx::OnOK();
}


void CDlgStopReason::OnBnClickedButtonFirstpeoduct()
{
	// TODO: 在此添加控件通知处理程序代码
	g_SendMes.nStopReason = 7;
	CDialogEx::OnOK();
}


void CDlgStopReason::OnBnClickedButtonQualityabnormal()
{
	// TODO: 在此添加控件通知处理程序代码
	g_SendMes.nStopReason = 8;
	CDialogEx::OnOK();
}


void CDlgStopReason::OnBnClickedButtonManyproduct()
{
	// TODO: 在此添加控件通知处理程序代码
	g_SendMes.nStopReason = 9;
	CDialogEx::OnOK();
}


void CDlgStopReason::OnBnClickedButtonEnviromentabnormal()
{
	// TODO: 在此添加控件通知处理程序代码
	g_SendMes.nStopReason = 10;
	CDialogEx::OnOK();
}


void CDlgStopReason::OnBnClickedButtonSetmessageincoplete()
{
	// TODO: 在此添加控件通知处理程序代码
	g_SendMes.nStopReason = 11;
	CDialogEx::OnOK();
}


void CDlgStopReason::OnBnClickedButtonOther()
{
	// TODO: 在此添加控件通知处理程序代码
	g_SendMes.nStopReason = 12;
	CDialogEx::OnOK();
}


void CDlgStopReason::OnBnClickedOk()
{
	// TODO: 在此添加控件通知处理程序代码
	CDialogEx::OnOK();
}
